'use strict';
var clientControllers = angular.module('clientControllers');

clientControllers
    .controller('CmsEventCtrl', ['$rootScope', '$scope', '$filter', '$routeParams',
        'Subscription', 'Events', 'Event', function ($rootScope, $scope, $filter, $routeParams, Subscription, Events, Event) {

            $scope.showEventList = function() {
                $scope.eventContent = 'views/component/event/event-list.html';
                var json = Events.find({action: 'bySubId', subId: $rootScope.CurrentSub.id},function() {
                    $scope.events = json.data.events;
                });
            }
            $scope.showEventList();

        }]);




